<template>
  <div id="app">
    <!--  头部  -->
    <div style="height: 60px;line-height: 60px;background-color: aliceblue;margin-bottom: 2px">
      <img src="@/assets/logo.png" alt="" style="width: 40px;position: relative;top: 10px;left: 20px; ">
      <span style="margin-left: 25px;font-size: 25px">餐厅管理系统</span>
    </div>
    <!--  侧边栏 主体  -->
    <div style="display: flex;">
      <!--  侧边栏  -->
      <div style="width: 10%; min-height: calc(100vh - 62px); overflow:hidden;margin-right: 2px;background-color: white">
        <el-menu :default-active="$route.path" :default-openeds="['/']" router class="el-menu-demo" >
          <el-menu-item index="/">
            <i class="el-icon-s-home"></i>
            <span>餐厅管理</span>
          </el-menu-item>
          <el-menu-item index="/evaluation">
            <i class="el-icon-s-home"></i>
            <span>用户评价</span>
          </el-menu-item>
        </el-menu>
      </div>
      <!--  主体  -->
      <div style="width: 88%; flex: 1;background-color: white;padding: 10px">
        <router-view/>
      </div>
    </div>
  </div>
</template>


